/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vendingmachine;

/**
 *
 * Nama File    : Coin.Java
 * Deskripsi    : deskripsi dan implementasi kelas Coin yang merupakan Object yang mempunyai nilai yang valid untuk pembayaran Vending Machine
 * Nama Pembuat : Muhammad Ghufron Mahfudhi (23512066) dan Jonathan Ery Pradana (23512038)
 * Hari/Tanggal : Senin / 26 November 2012
 */
public class Coin extends Object {
    //atribut
    private int value; //uang dalam satuan dollar cents

    //method
    public Coin() {
        super();
        this.value = 0;
    }

    public Coin(double size, double weight, double thick, int serEdge, int value) {
        super(size, weight, thick, serEdge);
        this.value = value;
    }

    public Coin(Object O, int value) {
        super(O);
        this.value = value;
    }
    
    public Coin(Coin C){
        this.size = C.size;
        this.weight = C.weight;
        this.thick = C.thick;
        this.serEdge = C.serEdge;
        this.value = C.value;
    }

    //getter
    public int getValue() {
        return value;
    }

    //setter
    public void setValue(int value) {
        this.value = value;
    }
    
}
